<div class="trainerinfo">
    <div class="colmain">
        <h2>Basic Information:</h2>
        <div class="maintrainer">
            <div class="trainerProfile">Trainer Name</div> : <?php echo $userDetails->first_name . '  ' . $userDetails->last_name; ?>
        </div>
        <div class="clear"></div>

        <?php if (!empty($userDetails->age)) { ?>
            <div class="maintrainer">                                
                <div class="trainerProfile">Age</div> : <?php echo $userDetails->age; ?></div>
        <?php } ?>
        <div class="clear"></div>
        <?php if (!empty($userDetails->facebook) || $userType == 'backend') { ?>
            <div class="maintrainer">
                <div class="trainerProfile">Facebook Link</div> : <a href="<?php echo ($userType != 'backend') ? $userDetails->facebook :FACEBOOK_LINK; ?>" title="facebook link" target="_blank"><?php echo ($userType != 'backend') ? $userDetails->facebook :FACEBOOK_LINK_TITLE; ?></a>
            </div><?php } ?>
        <div class="clear"></div>

        <?php if (!empty($userDetails->twitter) || $userType == 'backend') { ?>
            <div class="maintrainer">
                <div class="trainerProfile">Twitter Link</div> : <a href="<?php echo ($userType != 'backend') ? $userDetails->twitter :TWITTER_LINK; ?>" title="twitter link" target="_blank"><?php echo ($userType != 'backend') ? $userDetails->twitter :TWITTER_LINK_TITLE; ?></a>
            </div>
        <?php } ?>
        <div class="clear"></div>

        <?php if (!empty($userDetails->linkedin) || $userType == 'backend') { ?>
            <div class="maintrainer">
                <div class="trainerProfile">Linkedin Link</div> : <a href="<?php echo ($userType != 'backend') ? $userDetails->linkedin : LINKEDIN_LINK; ?>" title="linkedin link" target="_blank"><?php echo ($userType != 'backend') ? $userDetails->linkedin:LINKEDIN_LINK_TITLE; ?></a>
            </div><?php } ?>
        <div class="clear"></div>
        <?php if (!empty($userDetails->website_title)) { ?>
            <div class="maintrainer"><div class="trainerProfile">Website Link</div> : <a href="<?php echo $userDetails->website_link; ?>" title="<?php echo $userDetails->website_title; ?>" target="_blank"><?php echo $userDetails->website_title; ?></a>
            </div><?php } ?>
        <div class="clear"></div>

        <?php if (!empty($userDetails->blog_title)) { ?>
            <div class="maintrainer">
                <div class="trainerProfile">Blog Link</div> : <a href="<?php echo $userDetails->blog_link; ?>" title="<?php echo $userDetails->blog_title; ?>" target="_blank"><?php echo $userDetails->blog_title; ?></a>
            </div><?php } ?>
        <div class="clear"></div>
        <?php if (!empty($userDetails->others)) { ?>
            <div class="maintrainer"><div class="trainerProfile">Other Link</div> : <a href="<?php echo $userDetails->others_link; ?>" title="<?php echo $userDetails->others; ?>" target="_blank"><?php echo $userDetails->others; ?></a></div><?php } ?>
        <div class="clear"></div> 
    </div>
    <div>
        <?php
        if ($userDetails->photo <> "") {
            $imgsrc = baseUrl() . '../../' . getUploadDir() . $imagePath . '/profile/thumb/' . $userDetails->photo;
        } else {
            $imgsrc = baseUrl() . '../../upload/default-male.jpg';
        }
        ?>
        <img src="<?php echo $imgsrc; ?>" title="<?php echo $userDetails->first_name; ?>" alt="<?php echo $userDetails->first_name; ?>" />
        <div style="float:right; margin-right:50px; margin-top:10px;">
            <?php echo CHtml::link('See Full Profile', $this->createAbsoluteUrl('users/trainerProfile/', array('authKey' => $classmodel->auth_key)), array('class' => 'btn-green twoBtn'));
            ?>
        </div>
    </div></div>
<div class="clear"></div>
<?php if (!empty($userDetails->about)) { ?>                                        
    <div class="trainerProfile"><h2>About:</h2></div>
    <div class="clear"></div>
    <?php echo $userDetails->about; ?>
<?php } ?>
<div class="clear"></div>
<?php if (!empty($userDetails->experience)) { ?>
    <div class="trainerProfile"><h2>Experience:</h2></div>
    <div class="clear"></div>
    <?php echo $userDetails->experience; ?>
<?php } ?>
<div class="clear"></div>

<?php if (!empty($userDetails->other_info)) { ?>
    <div class="trainerProfile"><h2>Other Information:</h2></div>
    <div class="clear"></div>
    <?php echo $userDetails->other_info; ?>
<?php } ?>
<div class="clear"></div>
